#pragma once

#define HDEF_NATIVE_CPU_NR	8

#define HDEF_CYCLE_FREQ_PERNS	(0.0192)
#define APDS_CPU_NR		(HDEF_NATIVE_CPU_NR)

#define APDS_MAX_THREADS	(256)
#define APDS_MAX_SERVER		(1)

/* ?应该是一个质数，否则可能会导致固定的模式 */
#define APDS_HELP_QUOTA		(7)


#define APDS_NUMA_NR		(1)

/* 0核处理中断等事务，优先级更低 */
__attribute__((aligned(64))) static const unsigned char eff_quota_sd888[APDS_CPU_NR] = {
	APDS_HELP_QUOTA - 2, APDS_HELP_QUOTA - 2, APDS_HELP_QUOTA - 2, APDS_HELP_QUOTA - 2,
	APDS_HELP_QUOTA + 1 , APDS_HELP_QUOTA + 1, APDS_HELP_QUOTA + 1, APDS_HELP_QUOTA + 5
};

/* __attribute__((aligned(64))) static const unsigned char eff_quota_sd888[APDS_CPU_NR] = {
	APDS_HELP_QUOTA - 2, APDS_HELP_QUOTA - 2, APDS_HELP_QUOTA - 2, APDS_HELP_QUOTA - 2,
	APDS_HELP_QUOTA + 2 , APDS_HELP_QUOTA + 2, APDS_HELP_QUOTA + 2, APDS_HELP_QUOTA + 2
}; */

#define APDS_GET_NUMANODES(cid)	((cid) & 0)
#define APDS_GET_COREQUOTA(cid)	(eff_quota_sd888[cid])
#define APDS_GET_COREEFF(cid)	(eff_quota_sd888[cid])
#define APDS_GET_NUMAEFF(cid, target_cid) (0)
#define APDS_NUMA_EFF_DEC	(0)